package com.cn.steam.foundation.common.model;

/**
 * @author: zjm
 * @create: 2021-11-14 16:22
 **/
public final class CommonConstant {
    public static final String DATA_SOURCE_KEY_IAM = "iam";

    public static final String COMMON_MDC_PARAM_TRACE_ID="traceID";

    /**
     * iam common constant
     */
    public static final String PARTNER_ID = "partnerId";
    public static final String USER_ID = "userId";
    public static final String EXT_PARTNER_ID = "extPartnerId";
    public static final String EXT_USER_ID = "extUserId";
    public static final String USER_TYPE = "userType";
    public static final String PARTNER_TYPE = "partnerType";

    public static final String COMMON_STATIC_RESOURCE_PATTERN = "/static/**";
    public static final String COMMON_PUBLIC_APIS_PATTERN = "/pub/api/**";

    /**
     * swagger resources
     */
    public static final String[] SWAGGER_RESOURCES = {"/doc.html","/webjars/**","/swagger-resources/**","/v2/api-docs","/v3/api-docs","/favicon.ico"};

    public static final String COMMON_OPEN_APIS_V1_PREFIX = "/open/api/v1";

    public static final String OPEN_USER_ROLE_V1_API = COMMON_OPEN_APIS_V1_PREFIX + "/user/role";

    public static final String OPEN_ROLE_V1_API = COMMON_OPEN_APIS_V1_PREFIX + "/role";

    public static final String COMMON_PUBLIC_APIS_V1_PREFIX = "/pub/api/v1";

    public static final String COMMON_PUBLIC_AUTH_APIS_V1_PREFIX = COMMON_PUBLIC_APIS_V1_PREFIX + "/auth";

    public static final String OPEN_PRIVILEGE_V1_API = COMMON_OPEN_APIS_V1_PREFIX + "/privilege";
}